package ink.fujisann.learning.stock.pojo;

import ink.fujisann.learning.code.pojo.BaseInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "coin_kline")
@org.hibernate.annotations.Table(appliesTo = "coin_kline", comment = "加密火币k线数据")
@DynamicInsert
@DynamicUpdate
@Data
@EqualsAndHashCode(callSuper = true)
public class CoinBase extends BaseInfo {
    @Id
    @GenericGenerator(name = "coin_kline_id", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "coin_kline_id")
    @ApiModelProperty("主键")
    private String id;

    @Column(columnDefinition = "varchar(16) comment '加密货币编码'")
    @ApiModelProperty("加密货币编码")
    private String coinCode;

}
